<template>
	<PopupTemplate className="confirm_order_container" title="查看进货价" type="1" :closeable="true" :visible="visible"
		:bodyStyle="{padding:'48rpx'}" @update:visible="handleUpdate">
		<view class="mt_16">
			<view class="fx aic jcb">
				<text class="fc_666">当前售价</text>
				<text class="fc_primary">¥{{data.salePrice||0}}</text>
			</view>
			<view class="mt_24 fx aic jcb" v-if="type==1">
				<text class="fc_666">底价</text>
				<text class="fc_primary">¥{{data.lowestSalePrice||0}}</text>
			</view>
			<view class="mt_24 fx aic jcb" v-if="type==2||type==3">
				<text class="fc_666">进货价</text>
				<text class="fc_primary">¥{{data.buyingPrice||0}}</text>
			</view>
		</view>
	</PopupTemplate>
</template>

<script>
	import PopupTemplate from '@/components/PopupTemplate.vue'
	export default {
		props: {
			visible: {
				type: Boolean,
				default: false
			},
			type: {
				type: String | Number,
				default: 1
			},
			data: {
				type: Object,
				default: () => ({})
			}
		},
		components: {
			PopupTemplate
		},
		data() {
			return {
			}
		},
		methods: {
			handleUpdate(e) {
				this.$emit('update:visible', e)
			}
		}
	}
</script>

<style lang="scss">
</style>